package com.baturu.vin.honda.script;

import com.baturu.vin.honda.dal.dao.SimpleDAO;
import com.baturu.vin.test.AbstractBaseCase;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Author: chenjiahao
 * @Time: 2019/12/6
 */
public class PartSql extends AbstractBaseCase {

    @Autowired
    SimpleDAO dao;

    @Test
    public void name() {
        int max = dao.queryCartypeMAXId();
        int start = 0;
        int i = 20000;
        while (start<max){
            dao.insters(start,i);
            System.out.println("已完成" + i);
            start = i;
            i+=20000;
        }
        dao.insters(i,max);
    }
}
